import Cookie from "cookie_js";

const token = "token";
const refreshtoken = "refreshtoken";
const login_name = "login_name";

export function set_token(value) {
  return Cookie.set(token, value);
}

export function get_token() {
  return Cookie.get(token);
}

export function remove_token() {
  return Cookie.remove(token);
}

export function set_refreshtoken(value) {
  return Cookie.set(refreshtoken, value);
}

export function get_refreshtoken() {
  return Cookie.get(refreshtoken);
}

export function remove_refreshtoken() {
  return Cookie.remove(refreshtoken);
}

export function set_login_name(value) {
  return Cookie.set(login_name, value);
}

export function get_login_name() {
  return Cookie.get(login_name);
}

export function remove_login_name() {
  return Cookie.remove(login_name);
}
